package com.zkt.subject.application.convert;

import com.zkt.subject.entity.SubjectInfoDTO;
import com.zkt.subject.infra.entity.SubjectInfoBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 赵开泰
 * @program jc-club
 * @date 2024/10/5
 * @description 题目信息的实体类型转换器
 **/

@Mapper
public interface SubjectInfoDTOConverter {
	
	SubjectInfoDTOConverter INSTANCE = Mappers.getMapper(SubjectInfoDTOConverter.class);
	
	SubjectInfoBO convertDtoToBo(SubjectInfoDTO subjectInfoDTO);
	
	SubjectInfoDTO convertBoToDto(SubjectInfoBO subjectInfoBO);
	
	List<SubjectInfoDTO> convertBoListToDto(List<SubjectInfoBO> subjectInfoBOList);
}
